
import http from "@/utils/http";

import {CLIENT,YNGP} from '@/common/const'

/**
 * Get请求示例
 * @param {Object} option
 * @param {Number} option.productId - 产品id
 *
 * @return {Promise} Array
 */
export function getColumn(option) {
  const url = `${CLIENT}/client/showStrategyStockPoolColumn.htm`;
  const params = {
    productColumnId: "",
    ...option,
  };
return http.get(url,  params );
}

/**
 * POST请求示例    擒龙策略
 * @param {Number} id - 参数注释
 * @return {Promise} Object  client/strategy/stock/list.htm?   //client/strategy/stock/list.htm
 */
export function getStockList(option) {
  const url = `${CLIENT}/client/strategy/stock/list.htm`;
  const params = {
    ...option,
  };
  return http.get(url,  params);
}

/**
 * 主力狙击/短线跟庄/强势挖掘
 */
export function getStrategyStockPoolList(option) {
  const url = `${CLIENT}/client/getStrategyStockPoolList.htm`;
  const params = {
    ...option,
  };
  return http.get(url, params);
}

// 点击搜索   //app/search.htm
/**
 * POST请求示例    擒龙策略
 * @param {Number} id - 参数注释
 * @return {Promise} Object  
 */
 export function getSearch(option) {
  const url = `${CLIENT}/client/search.htm`;
  const params = {
    ...option,
  };
  return http.get(url,  params);
}
